// 评论数量组件
import React, { Component } from 'react';

const CommentCount = ({ count }) => {
  return (
    // 评论数
    <div className="comment-number">
      <span>{count} 评论</span>
    </div>
  );
};

class CommentCount1 extends Component {
  render() {
    return (
      // 评论数
      <div className="comment-number">
        <span>{this.props.count} 评论</span>
      </div>
    );
  }
}

export default CommentCount;
